/**
 * Dart的数据类型详解 int double String bool List Map
 * Dart 中支持以下数据类型：
 *  Numbers(数值)：
 *    int
 *    double
 *  Strings(字符串)
 *    String
 *  Booleans(布尔)
 *    bool
 *  List(数组)
 *    在Dart中，数组是列表对象，所以大多数人只是称他们为列，每个 键 只出
 */
void main(List<String> args) {
  //1.字符串定义的几种方式
  var str1 = 'this is str';
  var str2 = 'this is str2';
  print(str1);
  print(str2);
  String str3 = "this is str";
  String str4 = "this is str2";
  print(str3);
  print(str4);
  String str5 = """多行字符串this is str 
  this is str
  this is str 
  end """;
  print(str5);
  String str6 = '''这也是多行字符串：this is str
  this is str 
  this is str
  over''';
  print(str6);
  //2.字符串拼接
  String str7 = "你好";
  String str8 = 'Dart';
  print("$str7 $str8");
  print(str7 + " " + str8);

  print("********int 类型");
  //1. int
  int a = 123;
  a = 45;
  print(a);
  //2.double
  double b = 23.5;
  b = 24;
  print(b);
  //3.运算符
  var c = a + b;
  print(c);

  print("***********bool");
  bool flag = true;
  print(flag);
  if (flag) {
    print("真");
  } else {
    print("假");
  }
}
